package com.lq.common.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lq.common.entity.ShortPage;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 权哥
 * @version 1.0
 * @date 2023/7/21 22:58
 */
@Mapper
@CacheNamespace
public interface ShortPageMapper extends BaseMapper<ShortPage> {

    /**
     * 根据type随机获取记录
     * @param type
     * @return
     */
    ShortPage getOne(String type);
}
